<script setup lang="ts">
// 首页组件
</script>

<template>
  <div class="min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100">
    <div class="container mx-auto px-4 py-16">
      <div class="text-center">
        <h1 class="text-4xl font-bold text-gray-900 mb-8">
          欢迎使用对话应用
        </h1>
        <p class="text-xl text-gray-600 mb-12 max-w-2xl mx-auto">
          基于 Vue 3 + TypeScript 构建的现代化对话应用，支持实时聊天和智能对话功能。
        </p>

        <div class="flex justify-center space-x-4">
          <router-link
            to="/chat"
            class="bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-8 rounded-lg transition duration-200"
          >
            开始聊天
          </router-link>
          <router-link
            to="/conversation"
            class="bg-gray-600 hover:bg-gray-700 text-white font-semibold py-3 px-8 rounded-lg transition duration-200"
          >
            查看对话
          </router-link>
        </div>
      </div>

      <div class="mt-16 grid grid-cols-1 md:grid-cols-3 gap-8">
        <div class="bg-white rounded-lg shadow-md p-6">
          <div class="text-blue-600 mb-4">
            <svg class="w-8 h-8" fill="currentColor" viewBox="0 0 20 20">
              <path d="M2 5a2 2 0 012-2h7a2 2 0 012 2v4a2 2 0 01-2 2H9l-3 3v-3H4a2 2 0 01-2-2V5z" />
              <path d="M15 7v2a4 4 0 01-4 4H9.828l-1.766 1.767c.28.149.599.233.938.233h2l3 3v-3h2a2 2 0 002-2V9a2 2 0 00-2-2h-1z" />
            </svg>
          </div>
          <h3 class="text-lg font-semibold text-gray-900 mb-2">
            实时对话
          </h3>
          <p class="text-gray-600">
            支持实时消息传递，流畅的对话体验
          </p>
        </div>

        <div class="bg-white rounded-lg shadow-md p-6">
          <div class="text-green-600 mb-4">
            <svg class="w-8 h-8" fill="currentColor" viewBox="0 0 20 20">
              <path d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
            </svg>
          </div>
          <h3 class="text-lg font-semibold text-gray-900 mb-2">
            类型安全
          </h3>
          <p class="text-gray-600">
            基于 TypeScript 构建，提供完整的类型支持
          </p>
        </div>

        <div class="bg-white rounded-lg shadow-md p-6">
          <div class="text-purple-600 mb-4">
            <svg class="w-8 h-8" fill="currentColor" viewBox="0 0 20 20">
              <path d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3z" />
            </svg>
          </div>
          <h3 class="text-lg font-semibold text-gray-900 mb-2">
            现代化UI
          </h3>
          <p class="text-gray-600">
            使用 Tailwind CSS 构建的响应式界面
          </p>
        </div>
      </div>
    </div>
  </div>
</template>
